layui.use('layer',function(){

});

$(function(){
    var $_loading_index_;
    $(document).ajaxStart(function(){
        $_loading_index_ = layer.load(3,{shade:0.2});
    });

    $(document).ajaxStop(function(){
        layer.close($_loading_index_);
    });
});

$.ajaxSetup({ cache: false });